package org.smart.framework.core.bean;

import java.lang.reflect.Method;

/**
 * @author lyric
 * @version 1.0.0
 * @date 2017/2/9 10:14
 * @description 封装 Action 信息
 */
public class Handler {

    /** Controller 类 */
    private Class<?> controllerClass;

    /** Action 方法 */
    private Method actionMethod;

    /**
     * @author lyric
     * @description 带参构造函数
     * @param controllerClass Controller 类
     * @param actionMethod Action 方法
     */
    public Handler(Class<?> controllerClass, Method actionMethod) {
        this.controllerClass = controllerClass;
        this.actionMethod = actionMethod;
    }

    /**
     * @author lyric
     * @description 获得 Controller 类
     * @return
     */
    public Class<?> getControllerClass() {
        return controllerClass;
    }

    /**
     * @author lyric
     * @description 获得 Action 方法
     * @return
     */
    public Method getActionMethod() {
        return actionMethod;
    }
}
